use agent::{Agent, AgentConfig};
use anyhow::Result;
pub mod llm;
pub mod agent;
pub mod tool;

pub async fn agent_query(query: impl Into<String>) -> Result<()> {
    let config = AgentConfig::default();
    let mut agent = Agent::load_config(config)?;
    
    let answer = agent.run(query.into()).await?;
    println!("{}", answer);
    Ok(())
}